package cn.com.api.service.impl.base;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_match_vote;

import cn.com.api.mapper.ApiU_match_voteMapper;

import cn.com.api.service.ApiU_match_voteService;

/**
 * 
 **/
@Service
public class U_match_voteServiceImplBase {
	@Autowired
	private ApiU_match_voteMapper apiU_match_voteMapper;
    
    // 根据id获取
	public ApiU_match_vote findU_match_voteById(Integer id){
		ApiU_match_vote u_match_vote = apiU_match_voteMapper.findU_match_voteById( id );
		return u_match_vote;
	}
    
    //查看数据集
	public List<ApiU_match_vote> findU_match_votes(){
        List<ApiU_match_vote> u_match_votes = apiU_match_voteMapper.findU_match_votes();
		return u_match_votes;
    }
   
    //根据条件查看数据集
	public List<Map<String, Object>> findU_match_votesByMap(HashMap condition){
        List<Map<String, Object>> u_match_votes = apiU_match_voteMapper.findU_match_votesByMap(condition);
		return u_match_votes;
    }
    
	// 添加
	public int insertU_match_vote(ApiU_match_vote u_match_vote){
		int ret_I= apiU_match_voteMapper.insertU_match_vote(u_match_vote);
		return ret_I;
	}

	// 修改
	public int updateU_match_vote(ApiU_match_vote u_match_vote){
		int ret_I= apiU_match_voteMapper.updateU_match_vote(u_match_vote);
		return ret_I;
	}
	
    // 删除
	public int deleteU_match_vote(Integer id){
		int ret_I= apiU_match_voteMapper.deleteU_match_vote( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    
    
}


